import { combineReducers } from 'redux'
import { counterReducer } from './counter'
import { datalistReducer } from './datalist'

// const defaultState = {
//   counter: 0,
//   dataList: [],
// }
// export default function (state = defaultState, action) {
//   return {
//     counter: counterReducer(state.counter, action),
//     dataList: datalistReducer(state.dataList, action),
//   }
// }
const reducer = combineReducers({
  counter: counterReducer,
  dataList: datalistReducer,
})
export default reducer
